<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/7/23
 * Time: 16:54
 */

namespace app\admin\controller;


use app\admin\model\frontend\LikeM;
use app\admin\model\frontend\MsgM;

class Guest extends Base
{

    protected $msgM;

    /*
    * 依赖注入Model
    * */
    public function __construct(MsgM $msgM){
        parent::__construct();
        $this->msgM = $msgM;
    }

    public function guest_msg(){
        if ($this->request->isPost()|| input('get.export/b')){
            return $this->msgM->listData();
        }
        $this->assign("__search",$this->msgM->__search());
        $this->assign("__header",$this->msgM->__header());
        return $this->fetch('guest/list');
    }

}